package com.xuzhen.thread.localVa.two;

public class AddThread extends Thread {
	private static int count;
	private int a;
	private int b;

	public AddThread(int a, int b) {
		this.a = a;
		this.b = b;
	}

	public void run() {
		IntUtil.getInstance().setC(a+b);
		if((a+b)!=IntUtil.getInstance().getC()){
			System.out.println(a+":"+count++);
		}
	}
}
